import Book from "../pages/Book/Book";
import Dong from "../pages/Dong/Dong";
import Home from "../pages/Home/Home.jsx";

import Sear from "../pages/Sear/Sear";
import Vedio from "../pages/Vedio/Vedio";
import { createBrowserRouter } from "react-router-dom";
import Layouts from "../Layouts/Layouts.jsx";

export const routerlist=[
    {
        path:'/home',
        element:<Home />,
        meta:{title:'首页'}
    },
    {
        path:'/sear',
        element:<Sear />,
        meta:{title:'热搜'}
    },
    {
        path:'/book',
        element:<Book />,
        meta:{title:'小说'}
    },
    {
        path:'/vedio',
        element:<Vedio />,
        meta:{title:'电影'}
    },
    {
        path:'/dong',
        element:<Dong />,
        meta:{title:'电视剧'}
    },
]

const router=createBrowserRouter([
    {
        path:'/',
        element:<Layouts />,
        children:routerlist
    }
])

export default router